<?php
namespace App\Model;

/**
 * @Author:: HuangYin
 * @DateTime: 2017-02-24 14:04
 *
 * @Description:
 */
class ShiftExchange extends BaseModel
{
    public $table = 'shift_exchange';

    public $visible = ['id', 'admin_id', 'number', 'inventory', 'memo', 'created_at'];

    public function admin()
    {
        return $this->hasOne('App\Model\Admin', 'uid', 'uid');
    }
}